home *** CD-ROM | disk | FTP | other *** search
- package com.extensibility.xml;
-
- import com.extensibility.util.Debug;
- import java.io.IOException;
- import java.io.Writer;
-
- class DCDFlavor extends BaseFlavor {
- static String NAME = "dcd";
-
- DCDFlavor(Schema var1) {
- super(var1);
- }
-
- public String getFlavorName() {
- return NAME;
- }
-
- public void parse(URI var1, URI var2, int var3, Object var4) throws IOException {
- (new DCDReader(super.schema)).parse(var1);
- }
-
- public void write(Writer var1) throws IOException {
- this.write(var1, super.schema.getURI());
- }
-
- public void write(Writer var1, URI var2) throws IOException {
- Debug.assert(var2.equals(super.schema.getURI()), "DCD doesn't support modules");
- (new DCDWriter(super.schema, var2)).writeDocument(var1);
- }
-
- public String getSourcePreview(BaseDeclaration var1) {
- return (new DCDWriter(super.schema, var1.getURI())).getSourcePreview(var1);
- }
-
- public boolean isSupported(Class var1) {
- return !var1.equals(Class.forName("com.extensibility.xml.NotationDeclaration")) && !var1.equals(Class.forName("com.extensibility.xml.DataTypeDeclaration"));
- }
-
- public boolean isSupported(String var1) {
- return var1.equals("GESTALT_NMTOKEN_ENUM_REQUIRED") ? true : super.isSupported(var1);
- }
-
- public void checkForErrors(BaseDeclaration var1) {
- super.checkForErrors(var1);
- }
- }
-